<%@page import="helpers.UrlHelper"%>
<%@page import="java.util.TreeMap"%>
<%
TreeMap check = (TreeMap) request.getAttribute("check");
String name = (String) request.getAttribute("name");
String value = (String) request.getAttribute("value");

//Set seo content
String title = "Check Value";
String description = "Free website value calculator for estimating the number of visits, pageviews, earnings, ad prices and net worth. ";
String url = UrlHelper.getServerUrl(request) + "/tool/value";
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>

			<div class="row-fluid">
            
            	<!-- tool detail
        		================================================== -->
            	<div class="span8">
                	<h3 class="toolName">Check Value</h3>
                    <p class="toolDesc">Free website value calculator for estimating the number of visits, pageviews, earnings, ad prices and net worth. </p>
                    
                    <!-- form check
        			================================================== -->
                    <form method="get" action="" class="form-inline">
                    	<% if (check != null && check.get("name") != null) { %>                       
                        <div class="alert alert-error"><%=check.get("name") %></div>
                        <% } %>
                    	<input type="text" placeholder="enter your domain name" class="input-xlarge"  value="<%=name != null ? name : "" %>" name="domain" />
                        <button type="submit" class="btn btn-info">check value</button>
                    </form>
                    
                    <!-- result
        			================================================== -->
       				<% if (value != null && !value.isEmpty()) { %>
                    <div class="toolResult">
                    	<h4>Value for <%=name %></h4>
                        <hr />
                    	<p><%=name %> has value <%=value %></p>
                    	
                    </div>
                    <% } %>
                </div>                
                
                <jsp:include page="/elements/right.jsp" />
                
            </div>


<jsp:include page="/layouts/footer.jsp" />